﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="RecruitingApplication.CandidateListView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

<link href='<%= ResolveUrl("~/Styles/Search.css")%>' rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%= this.ResolveUrl("~/Scripts/Search.js") %>"></script>

    <script type="text/javascript">

        InitialSearchQuery = '<%= this.InitialQuery %>';

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="ui-widget">
        <input id="NameFilter" size="50" title="Type here to filter results" class="WatermarkInput ui-widget-content ui-corner-all" />
        <div id="NoMatchesMessage" class="ui-state-highlight ui-helper-hidden">
            No candidates match the search criteria.
        </div></br>
        <label for="SearchCombobox_Position">
            Position
        </label>
        <div class="ui-widget" id="Search_PositionCombobox">
            <select id="SearchCombobox_Position"> 
		        <option value="">Select a position...</option>
            </select>
            <div class="clear"></div>
        </div>
        <label for="SearchCombobox_Position">
            State
        </label>
        <div class="ui-widget" id="Search_StateCombobox">
            <select id="SearchCombobox_State"> 
		        <option value="">Select a state...</option>
            </select>
            <div class="clear"></div>
        </div> 
        <label for="ActiveCheck">
            Active Only
        </label>
        <input type="checkbox" id="ActiveCheck" />
        <div>
            <br class="clear" />
        </div>
    </div>
    <ul id="CandidateList">
        <asp:ListView ID="CandidatesListView" runat="server">
            <ItemTemplate>
                <li onclick="HandleItemClick(<%# Eval("ID") %>);"><a href="#">
                    <div style="width:1100px;">
                        <div class="SearchPageTableCell" style="width:200px;">
                            <span class="ItemName"><%# Eval("Name") %></span>
                        </div>
                        <div class="SearchPageTableCell" style="width:200px;">
                            <span class="ItemEmail"><%# Eval("Email") %></span>
                        </div>
                        <div class="SearchPageTableCell" style="width:200px;">
                            <span><%# Eval("Phone") %></span>
                        </div>
                        <div class="SearchPageTableCell" style="width:200px;">
                            <input type="hidden" class="HiddenPositionID" value='<%# Eval("AppPositionID")%>'/>
                            <span class="AppPosition"><%# Eval("AppPosition") %></span>
                        </div>
                        <div class="SearchPageTableCell" style="width:200px;">
                            <input type="hidden" class="HiddenStateID" value='<%# Eval("StateID")%>'/>
                            <span class="AppState"><%# Eval("StateName")%></span>
                        </div>
                        <div class="SearchPageTableCell IsActiveParent" style="width:100px;">
                                <input type="hidden" class="HiddenActive" value='<%# Eval("IsActive").ToString().ToLower()%>'/>
                                <span class="ui-icon ui-icon-check"></span>
                        </div>
                    </div>
                  <br class="clear" />
                </a></li>
            </ItemTemplate>
        </asp:ListView>
    </ul>
</asp:Content>
